<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js" /></script>

<script language="javascript" type="text/javascript">
var mid = <?php echo $this->mid;?>;
function doChange(did)
{
	var val = $('#seq_' + did).val();
	var url = "<?php echo $this->url($this->baseUrl, "meet", "seqchange");?>";
	$.post(url, {mid:mid, did:did, seq:val}, function (data){
		location.reload();	
	});
}
</script>
<body>
<?php
$backurl = $this->url($this->baseUrl, "meet", "list", "nowp=" . $this->onowp);
?>
<table width="100%" border="1" class="tableA">
  <tr>
    <td colspan="7">选择复选框进行字段添加，删除 <a href="<?php echo $backurl;?>">返回</a>
    </td>
   </tr>
  <tr>
    <td width="5%" nowrap>编号</td>
    <td nowrap>字段名称(中文)</td>
    <td nowrap>排序</td>
    <td nowrap>字段类型</td>
    <td nowrap>必填</td>
    <td nowrap>独占一行</td>
    <td nowrap>最后编辑时间</td>
  </tr>
<?php
$arr_types = array(1 => '文本框', 2=>'单选', 3 => '下拉列表', 4=> '邮件地址', 5=> '日期类型', 6 => '多行文本框');

foreach ($this->dict as $v){
$type = $arr_types[$v['type']];
if ($v['issys']){
	$delstr = "";
}
print <<<EOT
  <tr>
    <td nowrap>{$v['did']}</td>
    <td nowrap>{$v['key']}</td>
    <td nowrap><input type="text" name="seq_{$v['did']}" size=10 id="seq_{$v['did']}" value="{$v['tseq']}" />
    <input type="submit" name="button_{$v['did']}" value="修改" class="btn_submit" onclick="javascript:return doChange({$v['did']});"/></td>
    <td nowrap>{$type}</td>
    <td nowrap>{$v['ismust']}</td>
    <td nowrap>{$v['isoneline']}</td>
    <td nowrap>{$v['pubtime']}</td>
  </tr>
EOT;
}
?>
</table>
</body>
</html>
